 #include "threadPool.h"
#define EXAMPLE_MACRO_NAME

int add(int a, int b)
{
    // std::cout << "a + b = " << a+b << std::endl;
	return a + b;
}


int main(void)
{
	CThreadPool pool(4);

    std::vector< std::future<int> > results;

	for (int i = 0; i < 10; ++i)
	{
        results.emplace_back(pool.EnQueue(add, i, i*10));
	}
    

    for (auto&& result : results)
        std::cout << result.get() << std::endl;


	return 0;
}
